package com.niit.entity;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * (User)实体类
 *
 * @author kingner
 * @since 2024-05-28 19:41:46
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 1L;
    
    private Integer uid;
    
    private String email;
    
    private String password;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd")
    private Date birthday;
    
    private String gender;
    /**
     * 用户级别（0.管理员， 1.普通用户， 2.会员用户， 5.官方大V认证）
     */
    private String level;
    
    private String message;
    
    private Integer intergral;
    
    private String name;

    private String code; //邮箱验证码，在session存储。

}

